package org.mindrot.jbcrypt;

import java.util.Scanner;

/**
 * @author yuisama
 * @date 2023/03/10 16:08
 **/
public class test {
    public static void main(String[] args) {
//        StringBuilder sb = new StringBuilder();
//        sb.append("(");
//        for (int i = 0; i <10; i++) {
//            sb.append(i).append(",");
//            System.out.println(i);
//            //这里给每个数字都加了一个逗号
//        }
//        sb.delete(sb.length()-1, sb.length());
//        sb.append(")");
//        //测试是否可以删掉逗号
//        System.out.println(sb);

        //知道了要称重的数量，请问最少需要多少砝码
                Scanner sc = new Scanner(System.in);
                int n = sc.nextInt();
                //sc.close();
                int weight = 1;
                int count = 1;
                int total = 1;
                while (total < n) {
                    count++;
                    weight *= 3;
                    total += weight;
                }
                System.out.println(count);
            }
}

